package org.LowAltitudeEconomy.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;


import java.util.List;

@Data
@TableName("user")
public class User {
    @TableId(type = IdType.AUTO)
    private Integer userId;

    private String userName;
    @JsonIgnore
    private String password;

    private String phone;

    private String fullName;

    private Integer status;

    @TableField(exist = false) // 明确标记这不是数据库字段
    private List<Sensor> sensors;
}